Skip to content

Conversation

@rhulme
Copy link
Contributor

@rhulme rhulme commented Jan 29, 2025

The platform.h headers for both RP2040 and RP2350 need extern "C" declarations when included from C++ code or rp2040_chip_version and rp2350_chip_version won't be found by the linker.

Fixes #2217

The platform.h headers for both RP2040 and RP2350 need 'extern "C"'
declarations when included from C++ code or 'rp2040_chip_version'
and 'rp2350_chip_version' won't be found by the linker.
@rhulme rhulme changed the base branch from master to develop January 29, 2025 17:16
@peterharperuk
Copy link
Contributor

Looks ok I guess

@kilograham kilograham added this to the 2.1.1 milestone Jan 31, 2025
@kilograham kilograham merged commit d7f6582 into raspberrypi:develop Feb 2, 2025
4 checks passed
will-v-pi pushed a commit to will-v-pi/pico-sdk that referenced this pull request Mar 20, 2025
The platform.h headers for both RP2040 and RP2350 need 'extern "C"'
declarations when included from C++ code or 'rp2040_chip_version'
and 'rp2350_chip_version' won't be found by the linker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot call rp2040_chip_version/rp2350_chip_version from C++ code

3 participants